package com.qtenv.datasync.service.entity.tuoanxin;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author cbl
 * @description 历史数据（大表）
 * @date 2022-02-24
 */
public class TAXTerminalHistoryData implements Serializable {
    /**
     * 设备归属水司
     */
    private String tenant_id;
    /**
     * 厂家编号
     */
    private Integer SupplierID;

    /**
     * 设备主键
     */
    private String TerminalID;

    /**
     * 总流量(m³)
     */
    private BigDecimal TotalFlow;

    /**
     * 正向流量(m³)
     */
    private BigDecimal ReadNumber;

    /**
     * 反向流量(m³)
     */
    private BigDecimal ReverseNumber;

    /**
     * 瞬时流量(m³)
     */
    private BigDecimal InstantNumber;

    /**
     * 瞬时流速
     */
    private BigDecimal InstantVelocity;

    /**
     * 管网压力mpa
     */
    private BigDecimal Pressure;

    /**
     * 创建时间
     */
    private Date CreateDate;

    /**
     * 抄表时间
     */
    private Date ReadDate;

    /**
     * 报警状态(0-无报警 1-有报警)
     */
    private int WarnFlag;

    /**
     * 警告
     */
    private String Warning;

    /**
     * 数据获取的类型(1:自动获取)
     */
    private int type;

    public String getTenant_id() {
        return tenant_id;
    }

    public void setTenant_id(String tenant_id) {
        this.tenant_id = tenant_id;
    }

    public Integer getSupplierID() {
        return SupplierID;
    }

    public void setSupplierID(Integer supplierID) {
        SupplierID = supplierID;
    }

    public String getTerminalID() {
        return TerminalID;
    }

    public void setTerminalID(String terminalID) {
        TerminalID = terminalID;
    }

    public BigDecimal getTotalFlow() {
        return TotalFlow;
    }

    @JSONField(name = "totalflux")
    public void setTotalFlow(BigDecimal totalFlow) {
        TotalFlow = totalFlow;
    }

    public BigDecimal getReadNumber() {
        return ReadNumber;
    }

    @JSONField(name = "plustotalflux")
    public void setReadNumber(BigDecimal readNumber) {
        ReadNumber = readNumber;
    }

    public BigDecimal getReverseNumber() {
        return ReverseNumber;
    }

    @JSONField(name = "reversetotalflux")
    public void setReverseNumber(BigDecimal reverseNumber) {
        ReverseNumber = reverseNumber;
    }

    public BigDecimal getInstantNumber() {
        return InstantNumber;
    }

    @JSONField(name = "flux")
    public void setInstantNumber(BigDecimal instantNumber) {
        InstantNumber = instantNumber;
    }

    public BigDecimal getInstantVelocity() {
        return InstantVelocity;
    }

    public void setInstantVelocity(BigDecimal instantVelocity) {
        InstantVelocity = instantVelocity;
    }

    public BigDecimal getPressure() {
        return Pressure;
    }

    @JSONField(name = "pressure")
    public void setPressure(BigDecimal pressure) {
        Pressure = pressure;
    }


    public Date getCreateDate() {
        return CreateDate;
    }

    public void setCreateDate(Date createDate) {
        CreateDate = createDate;
    }

    public Date getReadDate() {
        return ReadDate;
    }

    @JSONField(name = "readtime", format = "yyyy-MM-dd HH:mm")
    public void setReadDate(Date readDate) {
        ReadDate = readDate;
    }

    public int getWarnFlag() {
        return WarnFlag;
    }

    public void setWarnFlag(int warnFlag) {
        WarnFlag = warnFlag;
    }

    public String getWarning() {
        return Warning;
    }

    public void setWarning(String warning) {
        Warning = warning;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}